#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int arr[] = { 1,2,3,4,5,1,2,3,4,6 };
	int m= sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < m ; i++)
	{
		for (int j = i; j < m; j++)
		{
			if (arr[i] == arr[j])
				continue;
			else
				printf("%d ", arr[i]);
		}
	}
	return 0;
}